<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="首页" http-equiv="keywords">
    <meta name="format-detection" content="telephone=no">
    <!-- 禁止IPHONE识别手机号码 -->
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>首页</title>
    <!-- css -->
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/index.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/swiper.min.css}">
    <!-- public_css -->
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/public_lib.css}">
    <!-- zy_public_css -->
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/zy_public.css}">
    <!-- 子页css -->
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/children.css}">
    <!-- js -->
    <script type="text/javascript" th:src="@{/asserts/js/jquery-3.3.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/asserts/js/swiper.min.js}"></script>
    <script type="text/javascript" th:src="@{/asserts/js/public.js}"></script>

    <style type="text/css">

    </style>
</head>
<body style="background-color: rgb(245,250,254);">
<!-- 内容框 -->
<section>
    <div style="padding-top: 100px">
        <!--/*@thymesVar id="info" type=""*/-->
        <!--/*@thymesVar id="time" type=""*/-->
        <h2 style="text-align:center;font-size: 26px">[[${info}]] </h2>
        <h2 style="text-align:center;margin-top: 20px">页面在<span id="second" style="color:red">[[${time }]]</span>秒后自动跳转</h2>
        <div style="text-align:center;margin-top: 80px ;font-size: 22px">
            <!--/*@thymesVar id="location" type=""*/-->
            <a th:href="${#request.contextPath}+${location}">如果没有跳转，请点击我哦！</a>
        </div>
        <br><br><br><br><br><br>
    </div>
    <div style="text-align: center;color: gray;margin-top: 150px">
        <footer class="footer">
            Copyright &copy;2019 江苏省苏州高博优智开发工作室|版权所有 盗版必究.
        </footer>
    </div>
</section>
<script type="text/javascript">
    var interval = null;
    window.onload = function () {
        interval = setInterval(goTime, 1000);
    };
    var time = [[${time}]];

    function goTime() {
        time--;
        if (time > 0) {
            document.getElementById("second").innerHTML = time;
        } else {
            clearInterval(interval);
            var str= '[[${#httpServletRequest.getContextPath()}]][[${location}]]'.split("amp;");
            var loat = "";
            for (var i in str ) {
                loat += str[i];
            }
            location.href = loat;
        }
    }
</script>

</div>
</body>
</html>
